//document.write("<script language='javascript' src='./layer_mobile/layer.js'></script>");
function includeLinkStyle(url) {
  var link = document.createElement("link");
  link.rel = "stylesheet";
  link.type = "text/css";
  link.href = url;
  document.getElementsByTagName("head")[0].appendChild(link);
}

includeLinkStyle("/static/Js/layer_mobile/need/layer.css");

new_element=document.createElement("script");
new_element.setAttribute("type","text/javascript");
new_element.setAttribute("src","/static/Js/layer_mobile/layer.js");// 在这里引入了a.js
document.body.appendChild(new_element);

//信息框
function mobileAlert(con,btnText){
  layer.open({
    content:con
    ,btn:btnText
  });
}
  //提示
function mobileTip(info){
	 layer.open({
    content:info
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  });
}

//询问框
function mobileConfirm(title,y,n){
 	layer.open({
    content:title
    ,btn: [y, n]
    ,yes: function(index){
      location.reload();
      layer.close(index);
    }
  });
}
 //loading层
 function mobileLoading(){
 	 layer.open({type: 2});
 }
 //loading带文字
 function mobileLoadText(text){
 	layer.open({
    type: 2
    ,content:text
  });
 }


